#include <stdio.h>
#include <ctype.h>
int main(void)
{
    char ch;
    int lower = 0;
    int upper = 0;
    int other = 0;

    while ((ch = getchar()) != EOF)
        if (islower(ch))
            lower++;
        else if (isupper(ch))
            upper++;
        else
            other++;
    printf("大写字母：%d个，小写字母：%d个\n", upper, lower);

    return 0;
}